package mylab.utils.spring.service;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public abstract class SpringService implements InitializingBean, DisposableBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        init();
    }

    @Override
    public void destroy() throws Exception {
        dispose();
    }

    protected void init() {

    }

    protected void dispose() {

    }
}
